package app.framework.front.handler;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author mh.z
 */
public class ConcurrentMapFrontCache implements FrontCache {
    private Map<String, String> cacheMap;

    public ConcurrentMapFrontCache() {
        this.cacheMap = new ConcurrentHashMap<>();
    }

    @Override
    public String getContent(String key) {
        return cacheMap.get(key);
    }

    @Override
    public void putContent(String key, String value) {
        cacheMap.put(key, value);
    }

}
